package net.htjs.jdkgrammer.jdk14;

public class TestNull {
    public static void main(String[] args) {
        //jdk14中添加了对于空指针异常友好的提示，便于开发者快速定位空指针的对象。
        //java.lang.NullPointerException: Cannot read field "machine" because "engine" is null
        new Car().engine.machine.start();
    }
}
